/*
 * Message.h
 *
 *  Created on: 13-Sep-2014
 *      Author: ali
 */

#ifndef MESSAGE_H_
#define MESSAGE_H_

enum eMessageType
{
	eNone, eCHSelection, eData
};
class Message
{
	eMessageType m_eMsgType;
	int m_nMsgLengthInBits;
	double m_dResidualPower;
	int m_nWinCount;
public:
	Message();
	Message(eMessageType, int, double, int);
	int GetMessageLeninBits()
	{
		return m_nMsgLengthInBits;
	}
	eMessageType GetMessageType()
	{
		return m_eMsgType;
	}
	void SetMessageLeninBits(int len)
	{
		m_nMsgLengthInBits = len;
	}
	void SetMessageType(eMessageType type)
	{
		m_eMsgType = type;
	}
	void Append(int len)
	{
		m_nMsgLengthInBits += len;
	}
	double GetResidualPower()
	{
		return m_dResidualPower;
	}
	double GetWinCount()
	{
		return m_nWinCount;
	}
	Message(int len, eMessageType type);
	~Message();
};

#endif /* MESSAGE_H_ */
